﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MengLin.OOP.DesignPattern.Decorator.StudentStudy.Models
{
    public class StudentCombination:Student
    {
        private AbstractStudent _student { get; set; }

        public StudentCombination(AbstractStudent student)
        {
            _student = student;
        }

        public override void Study()
        {
            _student.Study();
            Console.WriteLine("学习完了，上个厕所");
        }
    }
}
